#! /bin/bash

# Author : Vincent
# Warning, this piece of code comes with no warranty

export FILE_REPO=http://quent.fr/GICOM

help(){
    echo "Goal of this script : to deploy ECOM and thus :"
    echo " - install ant"
    echo " - install JOnas"
    echo " - install mysql"
    echo " - populate the DB"
    echo "All those points are separate scripts that should be included in the same directory."
    echo "MUST BE RUN WITH ROOT PRIVILEGES."

}

if [ $# -gt 0 ] ; then
    if [ $1 -eq "-h" ] ; then
        help
    fi
    
fi


echo "Installing Ant ..."
chmod +x install_ant.sh
sh install_ant.sh

echo "Installing JOnas ..."
chmod +x install_jonas.sh
sh install_jonas.sh

echo "Installing MySQL ..."
chmod +x install_mysql.sh
sh install_mysql.sh

echo "Installing ecom ..."
sh install_ecom.sh
